set "pfxfilesource=%~dp0tools\BuildShell\pfx\Win-Trust.pfx"
set "pfxpasswd=WinTrust"
set "signtoolPath=%~dp0tools\BuildShell\Tools\signtool.exe"
::set "data=%~dp0../output/SuloongSetup_3.5.1.0_%date:~0,4%%date:~5,2%%date:~8,2%.exe"
set "data=%1"  

:: %1 传递进来的第一个附带参数， %0 ，是sin_exe.bat本身

"%signtoolPath%" sign /f "%pfxfilesource%" /p "%pfxpasswd%" /t "http://timestamp.VeriSign.com/scripts/timstamp.dll" "%data%"
"%signtoolPath%" sign /fd sha256 /as /f "%pfxfilesource%" /p "%pfxpasswd%" /tr http://timestamp.comodoca.com "%data%"
::@pause